package com.weipeep.sys.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.weipeep.common.utils.poi.ProductData;
import com.weipeep.sys.domain.ProductDO;
import com.weipeep.common.base.CoreService;
import com.weipeep.sys.vo.ProductResponse;
import com.weipeep.sys.vo.ProductSearch;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 
 * </pre>
 * <small> 2018-04-20 22:55:14 | wangyun</small>
 */
public interface ProductService extends CoreService<ProductDO> {

    List<ProductResponse> fetchLatestProducts(Long userId,Integer pageNumber, Integer pageSize,Integer hotsell);

    Page<ProductResponse> selectProductPage(Page<ProductResponse> page, ProductSearch productSearch);

    int selectProductCount(ProductSearch productSearch);

    void refresh(Map<String,Object> map);

    List<ProductResponse> fetchOwnLatestProducts(Long userId,Integer pageNumber, Integer pageSize,Integer hotsell);
}
